package com.xuerhua.yxt.service.impl;

import java.util.List;

import com.xuerhua.yxt.reqVo.FruitsQueryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xuerhua.yxt.dao.FruitsParamMapper;
import com.xuerhua.yxt.model.FruitsParam;
import com.xuerhua.yxt.service.IFruitsParamService;

@Service("fruitsParamService")
public class FruitsParamServiceImpl implements IFruitsParamService {

	@Autowired
	private FruitsParamMapper fruitsParamMapper;
	
	@Override
	public int insertSelective(FruitsParam record) {
		return fruitsParamMapper.insertSelective(record);
	}

	@Override
	public FruitsParam selectByPrimaryKey(Integer id) {
		return fruitsParamMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(FruitsParam record) {
		return fruitsParamMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<FruitsParam> selectList(FruitsParam fruitsParam) {
		return fruitsParamMapper.selectList2(fruitsParam);
	}

	@Override
	public String selectByName(String name) {
		return fruitsParamMapper.selectByName(name);
	}

	@Override
	public String selectByNameAndSchoolId(FruitsQueryVO vo) {
		return fruitsParamMapper.selectByNameAndSchoolId(vo);
	}
}
